package com.pmcc.core.vo;

import com.pmcc.core.entity.security.Menu;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by syk on 17/7/6.
 */
@Getter
@Setter
public class MenuComboVO {

    private String id;

    private String name;

    private String icon;//图标

    private String path;//路径

    private String parentId;//上级菜单-1为一级菜单

    private List<MenuComboVO> children = new ArrayList<>();

    public MenuComboVO(Menu menu) {
        this.id = menu.getId();
        this.name = menu.getName();
        this.icon = menu.getIcon();
        this.path = menu.getPath();
        this.parentId = menu.getParentId();
    }

    public MenuComboVO() {}
}
